package com.ushine.design.design.c_behavioral_pattern.e_mediator.b_example;

public abstract class Component {
    protected Mediator mediator;


    public void setMediator(Mediator mediator) {
        this.mediator = mediator;
    }

    public void changed() {
        mediator.componentChanged(this);
    }

    public abstract void update();
}
